package org.light.framework.ioc;

public class Factory {

	private static IFactory _current = null;

	/**
	 * 创建工厂实例
	 */
	static {
		if (_current == null)
			_current = new DefaultFactory();
	}

	/**
	 * 当前组件工厂，用来创建组件实例
	 * 
	 * @return
	 */
	public static IFactory getCurrent() {
		return Factory._current;
	}

}
